package base2dev.web.common;

import java.util.ResourceBundle;

import org.apache.wicket.Component;
import org.apache.wicket.behavior.IBehavior;
import org.apache.wicket.markup.html.WebPage;

public abstract class BaseWebPage extends WebPage {

	private static final long serialVersionUID = 6050228891206859135L;
	
	private ResourceBundle resource =  ResourceBundle.getBundle("dictionary");

	public String getFromResources(String key) {
		return resource.getString(key);
	} 
	public BaseWebPage(String title) {
		setControls();
	}
	
	
	
	public BaseWebPage fAdd(Component child){
		add(child);
		return this; 
	}
	
	
	public BaseWebPage fAdd(IBehavior behavior){
		add(behavior);
		return this; 
	}
	
	
	public abstract void setControls();
	
	
}
